<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <AssemblyName>Microsoft.Interop.JavaScript.JSImportGenerator</AssemblyName>
    <TargetFramework>netstandard2.0</TargetFramework>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <RootNamespace>Microsoft.Interop.JavaScript</RootNamespace>
    <IsRoslynComponent>true</IsRoslynComponent>
    <!-- Disable RS2008: Enable analyzer release tracking
         Diagnostics in runtime use a different mechanism (docs/project/list-of-diagnostics.md) -->
    <NoWarn>RS2008;RS1038;$(NoWarn)</NoWarn>
    <DefineConstants>$(DefineConstants);JSIMPORTGENERATOR</DefineConstants>
    <AnalyzerLanguage>cs</AnalyzerLanguage>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion_LatestVS)" PrivateAssets="all" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Resources\xlf\" />
    <Compile Include="$(CommonPath)Roslyn\DiagnosticDescriptorHelper.cs" Link="Common\Roslyn\DiagnosticDescriptorHelper.cs" />
    <Compile Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\src\System\Runtime\InteropServices\JavaScript\MarshalerType.cs" Link="System\Runtime\InteropServices\JavaScript\MarshalerType.cs" />
  </ItemGroup>

</Project>
